<template>
  <div class="department-container">
    <div class="app-container">
      <el-card>
        <!-- 具体页面结构 -->
        组织架构
        <div>
          <button @click="hAddRoute">addRoute</button>
        </div>
      </el-card>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  methods: {
    // 回调
    hAddRoute() {
      this.$router.addRoutes([{
        path: '/abc',
        component: () => import('@/views/ABC/abc.vue')
      }])
    }
  }
}
</script>
